package com.property.manage.model.parking;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 描述
 *
 * @author lwb
 * @since 2020/9/15
 */
@Data
@TableName("t_parking_rent_arrears")
@ApiModel("欠费记录")
public class ParkingRentArrearsEntity {


    public static final Integer STATE_NOT_PAY = 1;

    public static final Integer STATE_PAID = 2;


    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("租赁编号")
    private Integer rentId;

    @ApiModelProperty("欠费金额")
    private BigDecimal money;

    @ApiModelProperty("欠费月份")
    @TableField("`year_month`")
    private String yearMonth;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("缴费流水号")
    private Integer payId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("说明")
    private String remark;

    /**
     * 业主ID
     */
    private Integer buildingId;


    /**
     * 缴费时间
     */
    private String chargeTime;

}
